package com.wcg.test;

import com.wcg.ApplicationConfig;
import com.wcg.dao.UserDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public  class test{
public static void main(String[] args) {
    ApplicationContext context = new AnnotationConfigApplicationContext(ApplicationConfig.class);
    UserDao userDao = (UserDao) context.getBean("userDao");
    userDao.save();
}
}